home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 February / EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso / earcd / games / cyberg12.lha / install_disk < prev    next >
Text File  |  1995-09-12  |  7KB  |  228 lines

  1. ;
  2. ; CYBERGAMES v1.2 installation script
  3. ; FOR DISK
  4. ;
  5. ; 1995 by Bjorn Fogelberg of CPD
  6. ; This script will work on the Commodore installer program
  7. ; which is the most common used for installations.
  8. ;
  9. ;---------------------------------------------------------
  10.  
  11.  
  12. (set @app-name "Cybergames")
  13. (set @minuser expert)
  14. (set @logfile "ram:cg_install.logfile")
  15.  
  16.  
  17. (welcome
  18.         "Welcome to the Cybergames installation\n"
  19.         "for disk!\n\n"
  20.         "Cybergames will be installed on three\n"
  21.         "disks. They will be formatted, given\n"
  22.         "the right name and the correct files\n"
  23.         "and directories will be copied onto the\n"
  24.         "correct disks.\n\n"
  25.         "When the installment is complete,\n"
  26.         "Cybergames is ready to run by booting\n"
  27.         "the first disk\n\n\n"
  28. )
  29.  
  30.  
  31. ; Format and name disk one
  32. ;-------------------------
  33.  
  34. (message
  35.         "Please insert first blank disk to be\n"
  36.         "formatted in drive DF0:\n"
  37. )
  38.  
  39. (run "sys:system/format drive DF0: name Cybergames1")
  40. (run "delete file df0:trashcan df0:trashcan.info")
  41. (run "install df0:")
  42.  
  43.  
  44. ; Ask for Source directory (Where you have put the unarced dirs)
  45. ;---------------------------------------------------------------
  46.  
  47. (set cg_sourcedir
  48.         (askdir
  49.                 (prompt "Please select the drawer named cg1\n")
  50.                 (default "ram:")
  51.                 (help   "Select the unarced directory named cg1\n\n"
  52.                         "This is so that the installer will\n"
  53.                         "know where to look for the files to\n"
  54.                         "copy to the first gamedisk\n\n")
  55.         )
  56. )
  57.  
  58.  
  59. ; Copy files from cg1 dir on HD to the disk named Cybergames1
  60. ;------------------------------------------------------------
  61.  
  62. (copyfiles
  63.         (prompt "I will now copy files to Cybergames1")
  64.         (help @copy-files)
  65.         (dest "Cybergames1:")
  66.         (source cg_sourcedir)
  67.         (all)
  68. )
  69.  
  70.  
  71. ; Get the version of your Amiga
  72. ;------------------------------
  73.  
  74. (set vernum (getversion "sys:libs/version.library"))
  75. (set ver (/ vernum 65536))
  76.  
  77.  
  78. ; Copy COMMODORE files to the directories on Cybergames1
  79. ;-------------------------------------------------------
  80.  
  81. (copyfiles
  82.         (prompt "I will now copy some Commodore files\n"
  83.                 "which is used to run Cybergames.\n"
  84.         )
  85.         (help   "If you have a computer with WB 1.2 or\n"
  86.                 "WB 1.3, the files that will be copied\n"
  87.                 "are run, runback and endcli\n"
  88.                 "If you have a system with WB 2.04 or\n"
  89.                 "higher, only runback is needed.\n"
  90.                 "They files will be copied from your Sys:c\n"
  91.                 "directory.\n"
  92.                 "Runback is used to start Cybergames as a\n"
  93.                 "background task and making it possible\n"
  94.                 "to close the CLI/Shell window. This will\n"
  95.                 "save some memory on a low memory Amiga.\n\n"
  96.                 "If you have no memory problems, runback can\n"
  97.                 "be replaced by run, simply by changing the\n"
  98.                 "startup-sequence in Cybergames:S\n\n"
  99.         )
  100.         (source "sys:c")
  101.  
  102.  
  103. ; If you have WB 2.04 or higher, the files   run, endcli, ram-handler
  104. ; and ramdrive.device
  105. ; is in ROM instead of sys: and won't be copied to the bootdisk.
  106. ; However, remember that you won't be able to run a => WB 2.04 installed
  107. ; version on another Amiga with WB 1.2 or WB 1.3 (unless you manually
  108. ; copy the needed files.)
  109. ;-----------------------------------------------------------------------
  110.  
  111.         (if (> ver 36)
  112.                 (choices "runback")
  113.                 (choices "run" "runback" "endcli")
  114.         )
  115.         (dest "Cybergames1:c")
  116. )
  117.  
  118. (if (< ver 37)
  119.         (copyfiles
  120.                 (prompt "I will now copy your Sys:Devs/ramdrive.device\n"
  121.                         "to Cybergames first diskette.\n")
  122.                 (help   " ")
  123.                 (source "Sys:Devs/ramdrive.device")
  124.                 (dest "Cybergames1:devs")
  125.         )
  126. )
  127.  
  128. (if (< ver 37)
  129.         (copyfiles
  130.                 (prompt "I will now copy your Sys:L/Ram-Handler\n"
  131.                         "to Cybergames first diskette.\n")
  132.                 (help   " ")
  133.                 (source "Sys:L/Ram-handler")
  134.                 (dest "Cybergames1:L")
  135.         )
  136. )       
  137.  
  138. ; Format and name disk two
  139. ;-------------------------
  140.  
  141. (message
  142.         "Please insert second blank disk to be\n"
  143.         "formatted in drive DF0:\n"
  144. )
  145.  
  146. (run "sys:system/format drive DF0: name Cybergames2")
  147. (run "delete file df0:trashcan df0:trashcan.info")
  148.  
  149.  
  150. ; Ask for Source directory (Where you have put the unarced dirs)
  151. ;---------------------------------------------------------------
  152.  
  153. (set cg_sourcedir
  154.         (askdir
  155.                 (prompt "Please select the drawer named cg2\n")
  156.                 (default "ram:")
  157.                 (help   "Select the unarced directory named cg2\n\n"
  158.                         "This is so that the installer will\n"
  159.                         "know where to look for the files to\n"
  160.                         "copy to the first gamedisk\n\n")
  161.         )
  162. )
  163.  
  164.  
  165. ; Copy files from cg2 dir on HD to the disk named Cybergames2
  166. ;------------------------------------------------------------
  167.  
  168. (copyfiles
  169.         (prompt "I will now copy files to Cybergames2")
  170.         (help @copy-files)
  171.         (dest "Cybergames2:")
  172.         (source cg_sourcedir)
  173.         (all)
  174. )
  175.  
  176.  
  177. ; Format and name disk three
  178. ;---------------------------
  179.  
  180. (message
  181.         "Please insert third blank disk to be\n"
  182.         "formatted in drive DF0:\n"
  183. )
  184.  
  185. (run "sys:system/format drive DF0: name Cybergames3")
  186. (run "delete file df0:trashcan df0:trashcan.info")
  187.  
  188.  
  189. ; Ask for Source directory (Where you have put the unarced dirs)
  190. ;---------------------------------------------------------------
  191.  
  192. (set cg_sourcedir
  193.         (askdir
  194.                 (prompt "Please select the drawer named cg3\n")
  195.                 (default "ram:")
  196.                 (help   "Select the unarced directory named cg3\n\n"
  197.                         "This is so that the installer will\n"
  198.                         "know where to look for the files to\n"
  199.                         "copy to the first gamedisk\n\n")
  200.         )
  201. )
  202.  
  203.  
  204. ; Copy files from cg3 dir on HD to the disk named Cybergames3
  205. ;------------------------------------------------------------
  206.  
  207. (copyfiles
  208.         (prompt "I will now copy files to Cybergames3")
  209.         (help @copy-files)
  210.         (dest "Cybergames3:")
  211.         (source cg_sourcedir)
  212.         (all)
  213. )
  214.  
  215. ; Create Cybergames_savedisk
  216. ;---------------------------
  217.  
  218. (message
  219.         "I will now create a savedisk\n"
  220.         "on which you can save your\n"
  221.         "highscores!\n\n"
  222.         "Please insert a blank disk\n"
  223.         "to be formatted.\n\n"
  224. )
  225.  
  226. (run "sys:system/format drive DF0: name Cybergames_savedisk")
  227. (run "delete file df0:trashcan df0:trashcan.info")
  228.